<%@ page import="java.util.List" %>
<%@ page import="com.cyy.info.pojo.Info" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
<table border="1px">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>countryCode</th>
        <th>district</th>
        <th>population</th>
    </tr>
    <%
        List list = (List) request.getAttribute("infoList");
        for (int i = 0; i < 10; i++) {
            Info info = (Info) list.get(i);
    %>
    <tr>
        <td><%=info.getId()%></td>
        <td><%=info.getName()%></td>
        <td><%=info.getCountryCode()%></td>
        <td><%=info.getDistrict()%></td>
        <td><%=info.getPopulation()%></td>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
